<#include "/view/common/command/para.html">
<div ng-app="water.apps.WasteWater.gyfsQyManager.gyfsInfo.sitePollutantsManager" ng-controller="fsSitePollutantsManagerController" ng-style="{height:(Map_H-100)+'px'}" style="overflow: auto;">
	<table class="zs-data-tab report" style="width:99%;padding:0px;margin:0px;">
		<thead>
			<tr>
				<th class="head" style="width:10%">所属站点</th>
				<th class="head" style="width:7%">污染物名称</th>
				<th class="head" style="width:4%">阈值</th>
				<th class="head" style="width:7%">浓度下限</th>
				<th class="head" style="width:7%">浓度上限</th>
				<th class="head" style="width:8%">是否标准阈值</th>
				<th class="head" style="width:10%">角色</th>
				<th class="head" style="width:15%">用户</th>
				<th class="head" style="width:16%" colspan="4">操作</th>
			</tr>
		</thead>
		<tbody>
			<tr ng-repeat="curRow in sitePolls">
				<td class="center" rowspan="{{curRow['STATION_NAME_ROWSPAN']['STATION_NAME_ROWSPAN']}}" ng-if="curRow['STATION_NAME_SAME_WITH_PREV'] != 'true'" ng-bind="curRow.STATION_NAME"></td>
				<td class="center" rowspan="{{curRow['POLLCODE_ROWSPAN']['POLLCODE_ROWSPAN']}}" ng-if="curRow['POLLCODE_SAME_WITH_PREV'] != 'true'" ng-bind="curRow.POLL_NAME"></td>
				<td class="center" ng-bind="curRow.ALARM_THRED_NUM"></td>
				<td class="center" ng-bind="curRow.DENSITY_ALARM_DOWMLIMIT"></td>
				<td class="center" ng-bind="curRow.DENSITY_ALARM_UPLIMIT"></td>
				<td class="center" ng-bind="curRow.IS_STANDARD == '1'?'是':'否'"></td>
				<td class="center" ng-bind="curRow.ROLE_NAME"></td>
				<td class="center" ng-bind="curRow.USER_NAME"></td>
				<td class="center" >
					<a href="javascript:void(0)" ng-show="curRow.IS_STANDARD != '1'" style="margin-right: 5px" ng-click="onSetStandardThresholdClick(curRow.THRESHOLD_GUID)">设为标准</a>
				</td>
				<td>
					<a href="javascript:void(0)" ng-click="onDeleteAlarm(curRow.THRESHOLD_GUID)">删除</a>
				</td>
				<td>
					<a href="javascript:void(0)" ng-click="onEditThresholdAlarmCycleClick(curRow.THRESHOLD_GUID,curRow.POLL_NAME)" ng-show="curRow.ALARM_THRED_NUM!=null">设置报警周期</a>
				</td>
				<td class="center" ng-click="onEditPollClick(curRow)" style="cursor: pointer" rowspan="{{curRow['POLLCODE_ROWSPAN']['POLLCODE_ROWSPAN']}}" ng-if="curRow['POLLCODE_SAME_WITH_PREV'] != 'true'">编辑</td>
			</tr>
		</tbody>
	</table>
	<div com-dialog width="800" height="450" title="我是标题" ng-model="editDialog" >
	  		<#include "${viewDir}/WasteWater/gyfsQyManager/gyfsInfo/sitePollutants/edit.html">
	</div>
	<div com-dialog width="500" height="400" title="发送报警短信周期设置" ng-model="ThresholdAlarmCycleSetDialog" >
	  		<#include "${viewDir}/WasteWater/gyfsQyManager/gyfsInfo/sitePollutants/cycleEdit.html">
	</div>
	<div com-dialog width="800" height="460" title="我是标题" ng-model="thresholdRoleUserSetDialog" >
	  		<#include "${viewDir}/WasteWater/gyfsQyManager/gyfsInfo/sitePollutants/thresholdRoleUserSet.html">
	</div>
	<div com-dialog width="700" height="460" title="我是标题" ng-model="alarmCycleRoleUserSetDialog" >
	  		<#include "${viewDir}/WasteWater/gyfsQyManager/gyfsInfo/sitePollutants/alarmCycleRoleUserSet.html">
	</div>
</div>


